<script language="javascript" type="text/javascript">
is_work_flow = "${is_work_flow?if_exists}";
function checkIsWorkFlow(){
	if(jQuery.trim(is_work_flow)!=''){
		var flow=is_work_flow.split("|");
		if(flow.length<3) return;
		var flowCode=jQuery.trim(flow[0]);
		var flowVersion=jQuery.trim(flow[1]);
		var titleColumns=jQuery.trim(flow[2]);
		btnColumn({isAdd:true,list:[{value:"提交审批",onclick:"startFlowAudit(\'"+flowCode+"\',"+flowVersion+",\'"+titleColumns+"\');return false;"}]});
	    var btnObj=$(".btnGroup:last");
	    if(btnObj){
	        var btnStr='<a href="#" onclick="startFlowAudit(\''+flowCode+'\','+flowVersion+',\''+titleColumns+'\');return false;" class="new-btn"><span><img src="${stx}/images/v2012/public/icon_shenpi.gif"  />提交审批</span></a> ';
	        $(btnStr).appendTo(btnObj);
	    }
	    
	}
}

jQuery(function(){
	checkIsWorkFlow();
});
</script>
</html>
